home *** CD-ROM | disk | FTP | other *** search
-
-
- Recovery From Trashed Hard Disk
-
- MSDOS ONLY
-
-
- WARNING THIS TECHNIQUE DESTROYS ALL INFO ON
- YOUR HARD DISK !!!!!!!!
-
-
- If you trash your hard disk system and are
- able to run format on the drive, but still
- get multiple error messages or format will
- not run at all the following technique is
- worth a try prior to taking your machine to
- your friendly dealer. If you have had an actual
- physical crash this will not help. However, if
- the problem is caused by something written on
- your drive that format will not remove, this
- should do the trick.
-
-
- The following code is entered with DEBUG. It
- involves sending the full device control block
- directly to the disk controller chip (here, to the
- PC XT-compatible BIOS on the host adapter card).
- While not yet tested, this process should work
- on the XT controller as well. The command set is
- identical, and can be found in the IBM PC
- Technical Reference Manual under Fixed Disk
- Adapter. This technique has also been used
- successfully on an ATT 6300 PC.
-
- The comments in the below example are set off with
- semicolons, and are not entered into DEBUG.
-
- ===================================================================
-
-
- ;low level formatting of 20 MB drives with Centan controller
- ;place MSDOS disk with debug in dive A:
-
- A>debug C:
- -o 321 0 ;write port controller reset
- -o 322 0 ;write port controller select
-
- -o 320 0c ;init drive characteristics command------
- -o 320 0 ;..
- -o 320 0 ;..
- -o 320 0 ;..
- -o 320 0 ;..
- -o 320 0 ;..
-
- ;-------8-byte parameter block-------------
- -o 320 02 ;max number of cylinders - high byte
- -o 320 64 ;max number of cylinders - low byte (264H = 612D)
- -o 320 04 ;maximum number of heads (= 4)
- -o 320 02 ;reduced write cylinder - high byte
- -o 320 64 ;reduced write cylinder - low byte (264H = 612D)
- -o 320 01 ;write precomp cylinder - high byte
- -o 320 00 ;write precomp cylinder - low byte (100H = 256D)
- -o 320 0b ;ECC burst length (0BH = 11)
-
- -i 320 ;read controller hardware status
- 00 ;result here should be "00". If not, abort
- ; and restart the sequence.
-
- ;-----optional---------------------------
- -o 322 0 ;write port controller select
- -o 320 0 ;check for Drive Ready command----------
- -o 320 0 ;"0" for drive 0, "20" for drive 1
- -o 320 0 ;..whole command is optional, but may be
- -o 320 0 ;..required with some disks.
- -o 320 0 ;..
- -o 320 0 ;..
-
- -i 320 ;read controller hardware status
- 00 ;again, result here should be "00" for
- ;..logical drive 0, "20" for logical drive 1. If not,
- ;..abort and restart.
- ;-------end optional command----------------
-
- -o 322 0 ;write port controller select
- -o 320 4 ;format drive command-----------
- -o 320 0 ;drive 0, starting head 0 (00d hhhhh), "20" drive 1
- -o 320 0 ;starting cyl high (cc 000000) = 0
- -o 320 0 ;starting cyl low (cccccccc) = 0
- -o 320 4 ;interleave factor (000 iiiii)
- -o 320 0 ;retries, step option (r 0000 ssss) = 0
-
- - ;disk drive will start formatting--watch for
- ;..drive busy light to go out.
- -quit
-
- Now either warm boot with <Ctrl><Alt><Del> or cold boot with
- a power cycle. Some drives or controllers may require the cold
- boot to reset the disk parameters.
-
- Then from DOS (in the floppy drive), use FDISK to redefine
- the partition and FORMAT to format for the DOS version you are
- using.
-
- (* This last step is very important !!!!!!!!!!!!!!!!!!!!!! *)
-